home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir34
/
katlog.zip
/
KATSORT.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-07-02
|
907b
|
37 lines
echo off
echo : DBS-KAT (C) COPYRIGHT 1986, R.H. MARTIN. REVERSE SORT KATDIR.OUT FILE.
echo :
echo : Please read and answer 1 or 0
echo :
echo : 0. I want a reverse sort by filename then by date/time
echo : 1. I want a reverse sort by date/time (not by filename)
katask 1
if errorlevel 1 goto dait
sort /r/+5 <katdir.out >katdir.srt
goto domore
:dait
sort /r/+19 <katdir.out >katdir.srt
:domore
echo :
echo : Please read and answer 1 or 0
echo :
echo : 0. I want output file to go to console
echo : 1. I want output file to go to printer
katask 1
if errorlevel 1 goto pr
goto con
:pr
type katdir.srt>prn
goto end
:con
type katdir.srt|more
goto end
:end
echo : Please read and answer 1 or 0
echo :
echo : 0. I don't want KATDIR files deleted
echo : 1. I want KATDIR files deleted
katask 1
if errorlevel 1 del katdir.*